package com.ruoyi.business.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.entity.WsdMeals;
import com.ruoyi.common.core.domain.vo.DailyMealPlanVO;
import com.ruoyi.common.core.domain.vo.DailyMealVO;
import com.ruoyi.common.core.domain.vo.MealInfoVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 餐饮时间表 Mapper 接口
 * </p>
 *
 * @author wwq
 * @since 2024-04-20
 */
public interface WsdMealsMapper extends BaseMapper<WsdMeals> {

    List<DailyMealPlanVO> findMealsByDateRange(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("schoolId") Long schoolId);

    DailyMealVO selectWsdMealsById(@Param("specificDate") String specificDate, @Param("schoolId") Long schoolId);

    /**
     * 查询当天学校食谱
     *
     * @param localDate
     * @param schoolId
     * @return
     */
    List<MealInfoVO> selectMealInfo(@Param("localDate") LocalDate localDate, @Param("schoolId") Long schoolId);
}
